package com.Brave.manager.Demo01;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo06 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fo = new FileOutputStream("D:\\JAVA\\html\\a.txt");
        FileInputStream fs = new FileInputStream("D:\\JAVA\\s.txt");

        byte[] by = new byte[1024];
        int index = -1;
        while ((index = fs.read(by)) != -1) {
            fo.write(by,0,index);
        }
        fs.close();
        fo.close();
    }
}
